package book;

/**
 * Created by xiebang
 * Description
 * User:小谢
 * Date:2021-09-21
 * Time:20:50
 */
public class BookList {

    private Book[] books = new Book[10];
    private int bookSize;

    public BookList() {
        books[0] = new Book("三国演义","罗贯中","小说",18);
        books[1] = new Book("西游记","施耐庵","小说",28);
        books[2] = new Book("斗罗大陆","唐家三少","小说",8);
        this.bookSize = 3;
    }

    public int getBookSize() {
        return bookSize;
    }

    public void setBookSize(int bookSize) {
        this.bookSize = bookSize;
    }


    public Book getBook(int pos){

        return books[pos];
    }
    public void setBook(int pos,Book book){
        this.books[pos]  = book;
    }
}
